package com.scs.application.modules.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;
/**
 * <p>
 *
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "仓库表")
@TableName("base_warehouse")
public class Warehouse extends DataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "仓库名称",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String name;
    private String namePy;

    @EntityFieldAnnotation(
            text = "地址",
            length = "250",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String address;


    // creator ,在父类中处理


    // gmt_create ,在父类中处理


    // modifier ,在父类中处理


    // gmt_modified ,在父类中处理

    @EntityFieldAnnotation(
            text = "仓库编号",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String code;

    @EntityFieldAnnotation(
            text = "hrp仓库编号",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String hrpCode;

    @EntityFieldAnnotation(
            text = "是否中心仓库",
            length = "",
            not_null = false,
            default_value = "0",
            comment = ""
    )
    private Boolean flagCenter;

    @EntityFieldAnnotation(
            text = "是否是消毒供应室",
            length = "",
            not_null = false,
            default_value = "0",
            comment = ""
    )
    private Boolean flagDisinfection;

    @EntityFieldAnnotation(
            text = "请领仓库ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String applyWarehouseId;

    @EntityFieldAnnotation(
            text = "请领仓库名称",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String applyWarehouseName;
}
